<?php


//sleep(9);
// puto

$json_response = array();


if ($_POST) {
	
	$json_response["success"] = true;
	//$json_response["msg"] = "todo pipón COMESAÑA! <script type='text/javascript' language='javascript'> alert('EVALUA SCRIPTS!! INCREÍBLE!!');</script>";
	$json_response["msg"] = "todo pipón COMESAÑA!";
	$json_response["validationErrors"] = array();
	
	
	
	$json_response["data"] = $_POST;


}
else {

	$json_response["success"] = false;
	$json_response["msg"] = "no se postearon los datos COMESAÑA";
	
	$json_response["data"] = "";

	$json_response["validationErrors"] = array(
												array("id" => "eltext2", "errors" => array("se necesita 2", "solo numeros max 4")),
												array("id" => "eltextarea1", "errors" => array("se necesita eltextarea1"))
												);		
}






header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');


/*
phpinfo();
exit();
*/

echo json_encode($json_response);









?>